<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>hello React</title>
  <script src="./lib/react.js"></script>
  <script src="./lib/react-dom.js"></script>
</head>
<body>
  <div id="app"></div>

  <script>
    // let HelloComponent = React.createClass({
    //   render: function() {
    //     return React.createElement("h1", null, "hello React")
    //   }
    // })

    // ReactDOM.render(
    //   React.createElement(HelloComponent, null),
    //   document.getElementById("app")
    // )

    let HelloComponent = React.createClass({
      render: function() {
        return React.createElement("h1", null, "hello world")
      }
    })

    ReactDOM.render(
      React.createElement(HelloComponent, null),
      document.querySelector("#app")
    )
  </script>
</body>
</html>